﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/Site.Master" Inherits="System.Web.Mvc.ViewPage<CodeCamp.Models.Schedule.ScheduleRoomViewModel>" %>

<asp:Content ID="Content1" ContentPlaceHolderID="TitleContent" runat="server">
	<%= Html.Encode( Model.EventDisplayName ) %> | Schedule for 
  <%= Html.Encode( string.Format( "{0}, {1}", Model.Building, Model.Room ) ) %>
</asp:Content>

<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">

  <h2>
    <%= Html.Encode( Model.EventDisplayName ) %> Schedule for 
    <%= Html.Encode( string.Format( "{0}, {1}", Model.Building, Model.Room ) ) %>
  </h2>


  <p>
    View the <%= Html.ActionLink( "Agenda", "Agenda" ) %> to see <%= Html.Encode( Model.EventDisplayName ) %> at a glance.
    View the <%= Html.ActionLink( "Session Schedule", "Index" ) %> to see the schedule arranged chronologically.
    View the <%= Html.ActionLink( "Session Schedule by Room", "Rooms" ) %> to see the schedule for all rooms.
  </p>
<%--  <p>
    Download the printable <a href="/Content/2010/PortlandCodeCamp2010Schedule.pdf">Session Schedule</a> (PDF).
  </p>
--%>  <p>
    Details are subject to change. But you already knew that.
  </p>

  <h3>Saturday, June 2, 2012</h3>
  <table class="scheduleByRoom">
    <tr class="horizontalLayout">
      <td class="col1"></td>
      <td class="col2"></td>
      <td class="col3"></td>
      <td class="col4"></td>
    </tr>
    <tr class="roomRow">
      <td colspan="4"><%= Html.Encode( string.Format( "{0}, {1}", Model.Building, Model.Room ) ) %></td>
    </tr>
    <% foreach ( var session in Model.Sessions )
        { %>
          <tr class="sessionRow">
            <td></td>
            <td class="time">
              <%= Html.Encode( session.StartTime.ToShortTimeString() ) %> &ndash;
              <%= Html.Encode( session.EndTime.ToShortTimeString() ) %>
            </td>
            <td class="session"><%= Html.ActionLink( session.Title, "Details", "Sessions", new { id = session.SessionId }, null ) %></td>
            <td class="presenters">
              <%  bool firstPresenter = true;
                  foreach ( var presenter in session.Presenters )
                  {
                    if ( !firstPresenter )
                    { %>, <% }
                    firstPresenter = false;
                    %><%= Html.ActionLink( presenter.Name, "Details", "Presenters", new { id = presenter.PresenterId }, null )%><% } %>
            </td>
          </tr>
    <% } %>
  </table>

</asp:Content>

